/**
 * @ author: 汪孟苹
 */
define([],function(){
	var tpl = {};

	tpl.init = function(){
		var html = '';
		html += page();
		return html;
	};
	var page = function(){
		return 	'<script id="tpl_page" type="text/html">'+
				'	<div class="page">'+
				'		<div class="btn-toolbar" role="toolbar">'+
				'   	{{each rows as value i}}'+
				'  			<div class="btn-group" role="group">'+
				'   			{{each value as value1 i}}'+
				'					<button type="button" class="btn {{if value1.active == value1.page}}btn-primary{{else}}btn-default{{/if}} {{if value1.disabled == true}} disabled{{/if}}">{{value1.page}}</button>'+
				'   			{{/each}}'+
				'			</div>'+
				'   	{{/each}}'+
				'		</div>'+
				'	</div>'+
				'</script>';
	};

	return tpl;
});